import urllib2
from threading import Thread,Lock
from Queue import Queue
import time

req = urllib2.Request("http://www.google.com.hk")

res = urllib2.urlopen(req)
html=res.read()

fopen = open('google.txt', 'w')
fopen.write(html)
fopen.close()

res.close()
        
